package com.fanqiechaodan.redis.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * @author fanqiechaodan
 * @Classname RedisConfig
 * @Description
 */
@Configuration
public class RedisConfig {

    @Bean
    StringRedisTemplate template(RedisConnectionFactory factory){
        return new StringRedisTemplate(factory);
    }
}
